package com.cccyy.data;

import com.alibaba.fastjson2.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.HashMap;
import java.util.Map;

public class DifMethodData {
    private static final Logger log = LoggerFactory.getLogger(DifMethodData.class);

    public static void main(String[] args) {
        String old = "";
        update(old);
        log.info("最后的值为：{}", old);
        HashMap<String, Object> testMap = new HashMap<>();
        update(testMap);
        log.info("map-最后的值为：{}", JSON.toJSONString(testMap));
    }

    private static void update(String old) {
        old = "000";
    }

    private static void update(Map old) {
        old.put("str", "325656327632");
    }

}
